package com.digitalbuana.smiles.utils;

import android.content.Context;
import android.telephony.TelephonyManager;

public class RecentUtils {

	
	private static RecentUtils instance;
	
	private RecentUtils() {
	}
	public static RecentUtils GetInstance() {
		if (instance == null) {instance = new RecentUtils();}
		return instance;
	}
	
	//Get PHONE IMEI 
	public static String getImei(Context ctx) {
		TelephonyManager telephonyManager = (TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE);
		String ime = telephonyManager.getDeviceId();
		String manufacture =  android.os.Build.MANUFACTURER;
		String product =  android.os.Build.PRODUCT;
		String id =  android.os.Build.ID;
		if(ime==null || ime.equals("")){
			ime = "ID-UNKNOWN";
		}
		return manufacture+"-"+product+"-"+id+"-"+ime;
	}
}
